//
//  Debug.swift
//  weiboxiangmu
//
//  Created by wei_jingyun on 15/7/3.
//  Copyright © 2015年 wei_jingyun. All rights reserved.
//

import UIKit

class Debug: NSObject{
   // TODO: 为调试修改
   private static let debug = true
    class  func Log (value: Any , fileName : String = __FILE__, line : Int32 = __LINE__ ){
        if debug {
            print("文件名称：\(fileName.lastPathComponent)    行数：\(line)")
            print("调试信息：\(value)")
            print("<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>")

        }
    }
    
    class  func LogN (value: Any){
        if debug {
            print("调试信息：\(value)")
        }
    }
    
    class  func LogFunc (value: Any = __FUNCTION__ , fileName : String = __FILE__, line : Int32 = __LINE__ ){
        if debug {
            print("方法名：\(value)  --- \(fileName.lastPathComponent)    行数：\(line) ")
        }
    }
}